﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace CSObjectWrap
{
    public class UIDrawCallWrap
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			Utils.BeginObjectRegister(typeof(UIDrawCall), L, translator, 0, 1, 25, 20);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateGeometry", UpdateGeometry);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderQueue", get_renderQueue);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "sortingOrder", get_sortingOrder);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "finalRenderQueue", get_finalRenderQueue);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "isActive", get_isActive);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "cachedTransform", get_cachedTransform);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "baseMaterial", get_baseMaterial);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "dynamicMaterial", get_dynamicMaterial);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainTexture", get_mainTexture);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "shader", get_shader);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "triangles", get_triangles);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "isClipped", get_isClipped);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "widgetCount", get_widgetCount);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "depthStart", get_depthStart);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "depthEnd", get_depthEnd);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "manager", get_manager);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "panel", get_panel);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "clipTexture", get_clipTexture);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "alwaysOnScreen", get_alwaysOnScreen);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "verts", get_verts);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "norms", get_norms);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "tans", get_tans);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "uvs", get_uvs);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "cols", get_cols);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDirty", get_isDirty);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "onRender", get_onRender);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderQueue", set_renderQueue);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "sortingOrder", set_sortingOrder);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "isActive", set_isActive);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "baseMaterial", set_baseMaterial);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "mainTexture", set_mainTexture);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "shader", set_shader);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "widgetCount", set_widgetCount);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "depthStart", set_depthStart);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "depthEnd", set_depthEnd);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "manager", set_manager);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "panel", set_panel);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "clipTexture", set_clipTexture);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "alwaysOnScreen", set_alwaysOnScreen);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "verts", set_verts);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "norms", set_norms);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "tans", set_tans);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "uvs", set_uvs);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "cols", set_cols);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "isDirty", set_isDirty);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "onRender", set_onRender);
            
			Utils.EndObjectRegister(typeof(UIDrawCall), L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(typeof(UIDrawCall), L, __CreateInstance, 7, 2, 0);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", Create_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ClearAll", ClearAll_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ReleaseAll", ReleaseAll_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ReleaseInactive", ReleaseInactive_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "Count", Count_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "Destroy", Destroy_xlua_st_);
            
			
            
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UnderlyingSystemType", typeof(UIDrawCall));
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeList", get_activeList);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "inactiveList", get_inactiveList);
            
			
			Utils.EndClassRegister(typeof(UIDrawCall), L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			try {
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					UIDrawCall __cl_gen_ret = new UIDrawCall();
					translator.Push(L, __cl_gen_ret);
					return 1;
				}
				
			}
			catch(System.Exception __gen_e) {
				return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
			}
            return LuaAPI.luaL_error(L, "invalid arguments to UIDrawCall constructor!");
            
        }
        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int UpdateGeometry(RealStatePtr L)
        {
            
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
            
            
            try {
                
                {
                    int widgetCount = LuaAPI.xlua_tointeger(L, 2);
                    
                    __cl_gen_to_be_invoked.UpdateGeometry( widgetCount );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int Create_xlua_st_(RealStatePtr L)
        {
            
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
            try {
                
                {
                    UIPanel panel = (UIPanel)translator.GetObject(L, 1, typeof(UIPanel));
                    UnityEngine.Material mat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
                    UnityEngine.Texture tex = (UnityEngine.Texture)translator.GetObject(L, 3, typeof(UnityEngine.Texture));
                    UnityEngine.Shader shader = (UnityEngine.Shader)translator.GetObject(L, 4, typeof(UnityEngine.Shader));
                    
                        UIDrawCall __cl_gen_ret = UIDrawCall.Create( panel, mat, tex, shader );
                        translator.Push(L, __cl_gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int ClearAll_xlua_st_(RealStatePtr L)
        {
            
            
            
            try {
                
                {
                    
                    UIDrawCall.ClearAll(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int ReleaseAll_xlua_st_(RealStatePtr L)
        {
            
            
            
            try {
                
                {
                    
                    UIDrawCall.ReleaseAll(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int ReleaseInactive_xlua_st_(RealStatePtr L)
        {
            
            
            
            try {
                
                {
                    
                    UIDrawCall.ReleaseInactive(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int Count_xlua_st_(RealStatePtr L)
        {
            
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
            try {
                
                {
                    UIPanel panel = (UIPanel)translator.GetObject(L, 1, typeof(UIPanel));
                    
                        int __cl_gen_ret = UIDrawCall.Count( panel );
                        LuaAPI.xlua_pushinteger(L, __cl_gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int Destroy_xlua_st_(RealStatePtr L)
        {
            
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
            try {
                
                {
                    UIDrawCall dc = (UIDrawCall)translator.GetObject(L, 1, typeof(UIDrawCall));
                    
                    UIDrawCall.Destroy( dc );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_activeList(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			    translator.Push(L, UIDrawCall.activeList);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_inactiveList(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			    translator.Push(L, UIDrawCall.inactiveList);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_renderQueue(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.renderQueue);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_sortingOrder(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.sortingOrder);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_finalRenderQueue(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.finalRenderQueue);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_isActive(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.isActive);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_cachedTransform(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.cachedTransform);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_baseMaterial(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.baseMaterial);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_dynamicMaterial(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.dynamicMaterial);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_mainTexture(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.mainTexture);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_shader(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.shader);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_triangles(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.triangles);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_isClipped(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.isClipped);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_widgetCount(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.widgetCount);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_depthStart(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.depthStart);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_depthEnd(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.depthEnd);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_manager(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.manager);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_panel(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.panel);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_clipTexture(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.clipTexture);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_alwaysOnScreen(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.alwaysOnScreen);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_verts(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.verts);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_norms(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.norms);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_tans(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.tans);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_uvs(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.uvs);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_cols(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.cols);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_isDirty(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.isDirty);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int get_onRender(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.onRender);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_renderQueue(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.renderQueue = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_sortingOrder(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.sortingOrder = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_isActive(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.isActive = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_baseMaterial(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.baseMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_mainTexture(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.mainTexture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_shader(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.shader = (UnityEngine.Shader)translator.GetObject(L, 2, typeof(UnityEngine.Shader));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_widgetCount(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.widgetCount = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_depthStart(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.depthStart = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_depthEnd(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.depthEnd = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_manager(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.manager = (UIPanel)translator.GetObject(L, 2, typeof(UIPanel));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_panel(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.panel = (UIPanel)translator.GetObject(L, 2, typeof(UIPanel));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_clipTexture(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.clipTexture = (UnityEngine.Texture2D)translator.GetObject(L, 2, typeof(UnityEngine.Texture2D));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_alwaysOnScreen(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.alwaysOnScreen = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_verts(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.verts = (BetterList<UnityEngine.Vector3>)translator.GetObject(L, 2, typeof(BetterList<UnityEngine.Vector3>));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_norms(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.norms = (BetterList<UnityEngine.Vector3>)translator.GetObject(L, 2, typeof(BetterList<UnityEngine.Vector3>));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_tans(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.tans = (BetterList<UnityEngine.Vector4>)translator.GetObject(L, 2, typeof(BetterList<UnityEngine.Vector4>));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_uvs(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.uvs = (BetterList<UnityEngine.Vector2>)translator.GetObject(L, 2, typeof(BetterList<UnityEngine.Vector2>));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_cols(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.cols = (BetterList<UnityEngine.Color32>)translator.GetObject(L, 2, typeof(BetterList<UnityEngine.Color32>));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_isDirty(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.isDirty = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int set_onRender(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                UIDrawCall __cl_gen_to_be_invoked = (UIDrawCall)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.onRender = translator.GetDelegate<UIDrawCall.OnRenderCallback>(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
		
		
		
		
    }
}
